import request from '@/utils/request'

// 查询编码规则列表
export function listTbcodingrules(query) {
  return request({
    url: '/tbcodingrules/list',
    method: 'get',
    params: query
  })
}

// 查询编码规则详细
export function getTbcodingrules(enCode) {
  return request({
    url: '/tbcodingrules/' + enCode,
    method: 'get'
  })
}

// 新增编码规则
export function addTbcodingrules(data) {
  return request({
    url: '/tbcodingrules',
    method: 'post',
    data: data
  })
}

// 修改编码规则
export function updateTbcodingrules(data) {
  return request({
    url: '/tbcodingrules',
    method: 'put',
    data: data
  })
}

// 删除编码规则
export function delTbcodingrules(enCode) {
  return request({
    url: '/tbcodingrules/' + enCode,
    method: 'delete'
  })
}

